


<template>
  <view class="model_box">
      <view v-for="item in goodsModels" class="model" :style="{flex:item.flex?item.flex:1}">
        <view class="label">{{ item.label }}</view>
        <view class="value">{{ item.value }}</view>
      </view>
  </view>
</template>

<script >



export default  {
  props:{
    goodsModels:{
      type:Array,
      default:()=>[]
    }
  }

}
</script>


<style scoped lang="scss">
.model_box{
  background: rgb(244, 245, 249);
  display: flex;
  padding: 20rpx;
  .label{
    color: rgb(153, 153, 153);
    font-size: 28rpx;
    height: 60rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .value{
    color: rgb(51, 51, 51);
    font-size: 28rpx;
    height: 60rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
}
</style>